package com.shiguiwu.springmybatis.spring.aop.principle;

import org.springframework.aop.framework.AopContext;

/**
 * @description: aaa
 * @author: stone
 * @date: Created by 2021/6/9 16:23
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.aop.principle
 */
public class Service {
    public int m1() {
        System.out.println("m1 .....");
//        this.m2();
        ((Service)AopContext.currentProxy()).m2();
        return 1;
    }

    public void m2() {
        System.out.println("m2 ......");
    }
}
